/**
 * 信任登录相关API
 */

import { http, Method } from '@/utils/request.js';

import api from '@/config/api.js';

export function getInfo(params){
  return http.request({
    url: `${api.url}/device/info`,
    method: Method.GET,
    params,
  });
}

/**扫码开门
 * @param params
 */
export function open(params, data) {
  return http.request({
    url: `${api.url}/device/open`,
    method: Method.GET,
    params,
  });
}

